﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TIMETABLEASY
{
    class Event
    {
        private int propid = 0;
        private string propname = string.Empty;
        private int propriority = 0;
        private string proptype = string.Empty;
        private DateTime propt_begin = DateTime.Today;
        private DateTime propt_end = DateTime.Today;
        private string propclasse = string.Empty;
        private string proppersonname = string.Empty;
        private string propcampus = string.Empty;
        private string proproom = string.Empty;
        private string propperiode = string.Empty;

		public Event(int id, string name, int priority, string type,DateTime t_begin,DateTime t_end, string classe, string person_name ,string campus, string period, string room)
		{
            this.proppersonname = person_name;
			this.propid = id;
			this.propname = name;
            this.propriority = priority;
            this.propt_begin = t_begin;
            this.propt_end = t_end;
            this.propclasse = classe;
            this.proptype = type;
            this.propcampus = campus;
            this.propperiode = period;
            this.proproom = room;
		}

		public int id
		{
			get { return (this.propid); }
			set { this.propid = value; }
		}

		public string name
		{
			get { return (this.propname); }
			set { this.propname = value; }
		}
            
        public int priority
        {
            get { return (this.propriority); }
            set { this.propriority = value; }
        }

        public string type
        {
            get { return (this.proptype); }
            set { this.proptype = value; }
        }

        public DateTime t_begin
        {
            get { return (this.propt_begin); }
            set { this.propt_begin = value; }
        }

        public DateTime t_end
        {
            get { return (this.propt_end); }
            set { this.propt_end = value; }
        }

        public string classe
        {
            get { return (this.propclasse); }
            set { this.propclasse = value; }
        }

        public string person_name
        {
            get { return (this.proppersonname); }
            set { this.proppersonname = value; }
        }

        public string campus
        {
            get { return (this.propcampus); }
            set { this.propcampus = value; }
        }

        public string room
        {
            get { return (this.proproom); }
            set { this.proproom = value; }
        }

        public string period
        {
            get { return (this.propperiode); }
            set { this.propperiode = value; }
        }

    }
}
